package cz.mendelu.swi2.documents;

import java.util.Date;

public class Dokument implements IOldDoc, IGoogleLogin {
	private Date date;
	private String name;
	private Typ type;
	private String content;
	
	
	public Dokument(String name, Typ typ){
		this.name = name;
		this.type = typ;
		date = new Date();
	}
	
	public Dokument(String name, Typ typ, String content){
		this.name = name;
		this.type = typ;
		this.content = content;
		date = new Date();
	}
	
	/*
	static public ListOfDocuments findVersionList(String nazev){
		
	}
	*/
	
	public void setContent(String content){
		this.content = content;
	}
	
	public String read(){
		return content;
	}
	
	public String getName(){
		return name;
	}
	
	public Date getDate(){
		return date;
	}
	
	public Typ getType(){
		return type;
	}

	public String getContent() {
		return content;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setType(Typ type) {
		this.type = type;
	}
}
